package c.h.a.x.s;

import android.text.TextUtils;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;

/* compiled from: LineItemHolder */
public class p {
    public TextView a;
    public TextView b;
    public TextView c;
    public ImageView d;
    public View e;

    public p(View view) {
        this.e = view;
        this.a = (TextView) view.findViewById(2131297034);
        this.b = (TextView) view.findViewById(2131297042);
        this.c = (TextView) view.findViewById(2131296842);
        this.d = (ImageView) view.findViewById(2131296628);
    }

    public void a(o oVar) {
        if (oVar == null) {
            this.e.setVisibility(8);
            return;
        }
        this.e.setVisibility(0);
        this.d.setImageDrawable(oVar.a);
        this.a.setText(oVar.b);
        this.c.setText(oVar.c);
        if (TextUtils.isEmpty(oVar.d)) {
            this.b.setVisibility(8);
        } else {
            this.b.setVisibility(0);
            this.b.setText(oVar.d);
        }
    }
}
